import request from '@/utils/request'
// 查
export function fetchList(params) {
  return request({
    url:'/slideshow/selectallslideshow.action ',
    method:'get',
    params
  })
}
// 删
export function deleteBanner(data) {
  return request({
    url:'/slideshow/deleteByPrimaryKey.action',
    method:'post',
    data
  })
}
// 增
export function createBanner(data) {
  return request({
    url:'/slideshow/insertSelective.action',
    method:'post',
    headers: {'Content-Type': 'multipart/form-data'},
    data
  })
}

// 改图片
export function updeteBanner(data) {
    return request({
      url:'/slideshow/updateByPrimaryKey.action',
      method:'post',
      headers: {'Content-Type': 'multipart/form-data'},
      data
    })
  }
// 首页数据
export function getIndexData(params) { 
  return request({
    url:'/indexshow/selectdata.action',
    method:'get',
    params
  })
}
// 首页数据2
export function getIndexData2(params) {
  return request({
    url:'/indexshow/selectdatas.action',
    method:'get',
    params
  })
}
